package orchestration.android.demo;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.widget.Toast;

public class ShowUriActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Uri uri = (Uri)getIntent().getParcelableExtra("uri");
		String message;
		if(uri==null)
			message=" uri is null";
		else
			message=uri.toString();
		Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
		setResult(RESULT_OK);
		finish();
	}
}
